//
//  CLTool.h
//  SJ
//
//  Created by 程龙 on 2023/3/13.
//

#import <Foundation/Foundation.h>
typedef  void(^inishBlock)(void);
NS_ASSUME_NONNULL_BEGIN

@interface CLTool : NSObject
//设备唯一标示
+(NSString *)cl_defaultUIDCreate;

//保存用户信息
+(void)cl_saveUser:(NSString *)userStr key:(NSString *)key;
//获取用户信息
+(NSString *)cl_getUser:(NSString *)key;

+ (void)cl_showLoading;
+ (void)cl_showSuccess:(NSString *)content block:(nullable inishBlock)block;
+ (void)cl_showFail:(NSString *)content block:(nullable inishBlock)block;
+ (void)cl_closeWithshowView;

+ (NSString *)getRandomStringWithNum:(NSInteger)num;
//获取当前VC
+ (UIViewController *)getCurrentVC;
//判断字典为空
+ (BOOL)isNullToDictionary:(NSDictionary *)dict;

@end

NS_ASSUME_NONNULL_END
